home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World Interactive 7
/
PC World Interactive 7.iso
/
program
/
ctutord.EXE
/
PTRQZ3.C
< prev
next >
Wrap
C/C++ Source or Header
|
1993-07-16
|
616b
|
47 lines
/* ptrqz3.c */
main()
{
static char arr[20][10];
static char *arr1[] = {
"bababababa",
"ababababab",
"dcdcdcdcdc",
"cdcdcdcdcd",
"" };
int i, j;
for( i=0; arr1[i][0] != 0 && i < 20 ; i++){
printf("%s\n", arr1[i]);
for( j=0; arr1[i][j] != 0 && j < 10 ; j++)
arr[i][j] = arr1[i][j] ;
if( j != 10 )
arr[i][j] = arr1[i][j] ;
else
arr[i][9] = 0 ;
}
arr[i][0] = 0;
printarr(arr);
printf("Whew! I did it!!!\n");
}
printarr(z)
char z[][10];
{
int i;
for( i=0; z[i][0] != 0 && i < 20 ; i++)
printf("%s\n", z[i]);
}